package lab02.test15;

/**
 * Created by lenovo on 2017/10/20.
 */
public class Test {
    public static void main(String[] args) {
        Graduate stu1 = new Graduate();
        stu1.name = "zhangsan";
        stu1.sex = "男";
        stu1.age = 23;
        stu1.pay = 9000;
        stu1.fee = 10000;
        System.out.println(stu1.toString());

        if (stu1.getPay() - stu1.getFee() < 2000) {
            System.out.println("You  need a loan!");
        } else {
            System.out.println("You income is enough！");
        }


    }
}
